/*
 * @Author: ljkt
 * @Version: 1.1
 * @Date: 2024-11-01 14:30:38
 * @LastEditors: ljkt
 * @LastEditTime: 2024-11-04 14:33:56
 * @Description:
 */

#include "App_Include.h"

#ifdef e_Index_Tm0
extern void Timer0_ISR();
void timer0() interrupt 1
{
    SET_GLOBAL_IE(REF_FALSE);
    Timer0_ISR();
    Drv_Systick_Add_Isr();
    Drv_IoO_Duty_Isr();
    SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_Index_Tm1
void timer1() interrupt 3
{
    SET_GLOBAL_IE(REF_FALSE);
    SET_GLOBAL_IE(REF_TRUE);
}
#endif

#ifdef e_INDEX_UART0
void Uart0_Int(void) interrupt 16
{
    static uchar xdata addr_bak = 0;
    PUSH_REG_ADDR_SFR();
    SET_GLOBAL_IE(REF_FALSE);
    Drv_Uartx_Buf_Isr(e_INDEX_UART0);
    SET_GLOBAL_IE(REF_TRUE);
    POP_REG_ADDR_SFR();
}
#endif

#ifdef e_INDEX_UART1
void Uart1_Int() interrupt 7
{
    SET_GLOBAL_IE(REF_FALSE);
    SET_GLOBAL_IE(REF_TRUE);
}
#endif
